#ifndef GAME_WINDOW_H
#define GAME_WINDOW_H

#include <Gosu/Gosu.hpp>
#include <Gosu/AutoLink.hpp> // Makes life easier for Windows users compiling this.

#include "boost/multi_array.hpp"

#include <cstdlib>
#include <vector>
#include <map>

#include "Position.h"
#include "GameMap.h"
#include "Unit.h"
#include "Astar.h"
#include "CfgReader.h"
#include "objects.h"
#include "Utility.h"




class GameWindow : public Gosu::Window
{


public:

    GameWindow();
	void update();
    void draw();   
    void buttonDown(Gosu::Button btn);
	void buttonUp(Gosu::Button btn);
	void drawSelection();

private:

    boost::scoped_ptr<Gosu::Image> cursor;

	GameMap * theMap;

	std::vector<bigTile> * bigTiles;
	std::vector<smallTile> * smallTiles;
	std::vector<Unit *> units;

	Astar * pathFinder;


	PosDouble currentPosDouble, selectPosDouble, scrollPosDouble;
	bool buttonClicked, drawSelect, CTRL;
	int width, height;


	

};

#endif